<?php

/**
 * Modul pro spravu menu.
 *
 * @author David Dusek
 */
class MenuModule extends CMS\AbstractModule {
    public function hookAdminMenu() {
        return array("title" => "adminMenuTitle", 
                     "link" => ":Menu:Menu:default",                     
                     "img" => "btn_menu.png");
    }
    
    public function hookAdminSubmenu() {
        $submenu = array(
            0 => array(
                "title" => "list",
                "link" => ":Menu:Menu:default",
                "icon" => "ui-icon-clipboard",
                "right" => "list",
            )
        );
        return $submenu;
    }       
    
    public function hookUserGetAcl() {
        $acl = array(
            "Menu" => array(
                "name" => "menu_aclTitle",
                "operations" => array(
                    "list" => "menu_aclList"
                ),
            )
        );
        
        return $acl;
    }
}
